Skip to main content

All Questions

1vote
1answer
197views

Console-based number guessing game

I received feedback that my code was convoluted and written with very bad practices. Our tutor said explicitly that I should never write the code like that. I'm just trying to wrap my head around the ...
tanczmy's user avatar
4votes
3answers
1kviews

Number Guessing Game in Java

This is my implementation of the famous Number Guessing Game. It is not object oriented, but the goal was to create a simple to read, procedural program. Have I accomplished this goal? ...
Dexter Thorn's user avatar
9votes
5answers
3kviews

Java guess the number

I have just returned to college to finish my associate's in programming. The language my school uses for all of the programming classes is java, so I've been trying to get used to the language. The ...
RobotMan's user avatar
1vote
1answer
230views

"Guess number" game Java Swing app

I have implemented a "Guess number game" using Swing. The idea is that the user enters a range and the program makes guesses of the number. This is the first time I'm implementing this kind of ...
samba's user avatar
3votes
1answer
6kviews

Guess number game with an object-oriented design

I want to write well-thought-out, professional, object-oriented code. I wrote this little game to practice this. My goal was to find out how to dissect a number guessing game object-oriented. In the ...
Dexter Thorn's user avatar
2votes
3answers
6kviews

Number-guessing game in Java

I created a java number guessing game. I used some of the same code twice. I would like to know how to further simplify it if possible (I am a java beginner). ...
Silent Beast's user avatar
3votes
2answers
1kviews

"Choose a number between 0-9" game

This is a simple "Choose a number between 0-9" Game. It works perfectly but I'd like to know if there's a way to make my code smaller with the exact same functionality. ...
Crypto's user avatar
3votes
2answers
95views

Printing blocks in guessing game

I wrote a guessing game and I want it to be reduced because there are a lot of if statements basically handling the same task with a minor difference. Is there an ...
lordzee's user avatar
4votes
1answer
219views

Guessing game - Is it a 40?

User has number in head, the program must guess the number. ...
joe's user avatar
  • 41
6votes
2answers
208views

Guess a number game with mines version 3

I'm still new to Java and learning programming, so my main goal is to learn to making good code, so I don't want to do anything complex until I fix all of my bad coding habits on smaller programs. So,...
Goran B's user avatar
2votes
1answer
1kviews

Number-guessing game with betting

I'm really new to programming, currently following several tutorials and guidelines. After a couple of days of studying, I've learnt the basics of Java and conditionals and took on my first program. ...
Alex's user avatar
7votes
5answers
4kviews

Guessing Game In Java

...
Dragon4c3_'s user avatar
7votes
4answers
934views

First text-based number-guessing game

This was a learning experience. I have looked around and found some better ways to write some things but wanted a second opinion to look at what I've written and kind of analyze it as well. I just ...
LifezJoke's user avatar
15votes
6answers
3kviews

Elementary, Dr. Watson; it's a console adventure

How can I make this code shorter? The code I am using is so long. Just making one simple level is taking about 100 lines of code. ...
TheEliteAlien's user avatar
7votes
1answer
1kviews

Number-guessing game with a cheat code

As my first Java program, I have written a number-guessing game. I would appreciate any suggestions on how I can clean it up or streamline it. I don't mean cut down on the general tasks executed ...
user avatar

153050per page
close